/* -----------------------------------------------------------------------------
 * PROJECT    : lwf_handlers
 * FILE       : AttemptedQuestion.java
 *
 * HISTORY:
 * Date          Author                        Description
 * ----------------------------------------------------------------------------- 
 * Jan 27, 2011  mycodetalks			       Created
 */
package net.lwf.entity;

import java.io.Serializable;
/**
 * Class description goes here
 */
public class AttemptedQuestion implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String question;
	private String answer;
	private String formattedAnswer;
	private long starttime;
	private long endtime;
	private int attempts;
	private boolean answered = false;
	
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public String getFormattedAnswer() {
		return formattedAnswer;
	}
	public void setFormattedAnswer(String formattedAnswer) {
		this.formattedAnswer = formattedAnswer;
	}
	public long getStarttime() {
		return starttime;
	}
	public void setStarttime(long starttime) {
		this.starttime = starttime;
	}
	public long getEndtime() {
		return endtime;
	}
	public void setEndtime(long endtime) {
		this.endtime = endtime;
	}
	public int getAttempts() {
		return attempts;
	}
	public void attempted() {
		this.attempts++;
	}
	public boolean isAnswered() {
		return answered;
	}
	public void setAnswered(boolean answered) {
		this.answered = answered;
	}

}



